]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
authPrompt: Trivial style cleanup
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 6 Feb 2020 20:20:48 +0000 (17:20 -0300)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 12 Feb 2020 19:29:48 +0000 (19:29 +0000)
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922

js/gdm/authPrompt.js

index 82852207eff06c5fe5bbb6da7377ebc49b13ad85..1a36b994e237a4406200ee7ef324214d1c72741a 100644 (file)
@@ -181,10 +181,10 @@ var AuthPrompt = GObject.registerClass({
     }
 
     _updateEntry(secret) {
-        if (secret && (this._entry != this._passwordEntry)) {
+        if (secret && this._entry !== this._passwordEntry) {
             this._mainBox.replace_child(this._entry, this._passwordEntry);
             this._entry = this._passwordEntry;
-        } else if (!secret && (this._entry != this._textEntry)) {
+        } else if (!secret && this._entry !== this._textEntry) {
             this._mainBox.replace_child(this._entry, this._textEntry);
             this._entry = this._textEntry;
         }